package i18n;
import java.util.Locale;
import java.util.ResourceBundle;

public class I18N{

	public static void main(String[] args) {

	        //final Locale defaultLocale = Locale.getDefault();
	        //final ResourceBundle rbDefault = ResourceBundle.getBundle("messages", defaultLocale);

	        //new StringBuilder().append(rbDefault.getString("name"));
	       // new StringBuilder().append(rbDefault.getString("username"));
	        //new StringBuilder().append(rbDefault.getString("password"));

	        final Locale otherLocale = new Locale("pt", "BR");
	        final ResourceBundle rb = ResourceBundle.getBundle("messages", otherLocale);

	        System.out.println(new StringBuilder().append(rb.getString("name")).append(": Jean Jorge Michel"));
	        System.out.println(new StringBuilder().append(rb.getString("username")).append(": jmichel"));
	        System.out.println(new StringBuilder().append(rb.getString("password")).append(": minhasenhaultrasecreta"));
	    }
	}

	